$(function () {
	
	document.documentElement.style.fontSize = window.innerWidth/3.75 + 'px';
	
	var status = getQueryStr('status');
	//新用户
	var data_newer = {
		text: '恭喜完成注册，您已成功为好友助力！现在您已经是叮叮约车的注册用户了 ，登录APP就可以发起自己的专属邀请，领取中秋大礼哦！'
	}
	
	//老用户
	var data_older = {
		text: '恭喜您已是注册用户了，赶紧打开叮叮约车APP发起您的专属邀请吧！'
	}
	
	
	var tpl = document.getElementById("tpl").innerHTML;
	if(parseInt(status) == 1) {
		var html = juicer(tpl,data_newer);
	}
	if(parseInt(status) == 2) {
		var html = juicer(tpl,data_older);
	}
	
	$(".success-container").html(html);
	
	//前往下载app
	$('.successRegister-btn').on('click',function(){
		window.location.href = 'http://121.40.105.132:8085/appdown/';
	})
	
})
